home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’95 / Closure / Sources / PhotoshopHeaders / AcquireUtilities.h next >
Encoding:
C/C++ Source or Header  |  1995-06-24  |  1.1 KB  |  53 lines  |  [TEXT/MPS ]

  1. /*
  2.     File: AcquireUtilites.h
  3.  
  4.     Copyright 1994-95 by Adobe Systems, Inc.  All rights reserved.
  5.  
  6.     Utilities for acquire modules.
  7. */
  8.  
  9. #ifndef __AcquireUtilities__
  10. #define __AcquireUtilities__
  11.  
  12. #include "PITypes.h"
  13. #include "PIGeneral.h"
  14. #include "PIAcquire.h"
  15.  
  16. /*****************************************************************************/
  17.  
  18. /* The region of the image being acquired (an area and a range of planes).   */
  19.  
  20. typedef struct AcquireRegion
  21.     {
  22.     Rect rect;
  23.     int16 loPlane;
  24.     int16 hiPlane;
  25.     }
  26. AcquireRegion;
  27.  
  28. /* The layout of the data.                                                   */
  29.  
  30. typedef struct AcquireDataLayout
  31.     {
  32.     int32 rowBytes;
  33.     int32 colBytes;
  34.     int32 planeBytes;
  35.     }
  36. AcquireDataLayout;
  37.     
  38. /*****************************************************************************/
  39.  
  40. OSErr StoreData (AcquireRecord *stuff,
  41.                  void *data,
  42.                  AcquireRegion *region,
  43.                  AcquireDataLayout *layout);
  44.  
  45. OSErr FetchData (AcquireRecord *stuff,
  46.                  void *data,
  47.                  AcquireRegion *region,
  48.                  AcquireDataLayout *layout);
  49.  
  50. /*****************************************************************************/
  51.  
  52. #endif
  53.